<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/jquery.min.js"></script>
    <script src="./js/my.js"></script>
    <style>
        .box {
            background-color: rgb(184, 79, 79);
        }
    </style>
</head>
<body>
    <div class="box">
        <h3>青春不常在，抓紧谈恋爱</h3>
        <span>要幸福哦</span> <br>
        请输入性别： 男：<input name="ame" type="radio" class="sex"> 女：<input name="ame" type="radio"> <br>
        姓名：<input type="text" class="uname"> <br>
        请输入账号：<input type="text" class="txt"><br>
        请输入密码：<input type="password" class="sumit">
        <button class="btn">按钮</button><br>
        <ol></ol>
    </div>
    <!-- <script>
        var todolist = [{
        title: '我今天吃八个馒头',
        done: false
    },{
        title: '我今天学习jq',
        done: false 
    }]
    localStorage.setItem('todo', todolist)
    $('.box .uname').on('click', function() {
       var local = getDate()
       console.log(local);
    })
    function getDate() {
        var data = localStorage.getItem('todo')
        if (data !== null) {
            //本地存储里面的数据是字符串格式的  但是我们需要的是对象格式的
            return JSON.parse(data)
        }else {
            return []
        }
    }
    </script> -->
</body>
</html>